<article class="module width_full">
    <header><h3>Detalle Solicitud</h3></header>
    <div class="module_content">
        <p>
            <label for="subject"><b>Asunto:</b></label>
            <label><?php echo $this->solicitud->subject; ?></label>
        </p>
        <p>
            <label for="detail" style="float: left; padding-right: 5px;"><b>Detalle:</b></label>
            <textarea cols="50" rows="20" readonly="true" style="border: none; resize: none;"><?php echo $this->solicitud->detail; ?></textarea>
        </p>
        <p>
            <label for="adjuntos"><b>Adjuntos:</b></label>
            <?php if ($this->attachments != null): ?>
                <?php foreach ($this->attachments as $attach): ?>
                    <a href="<?php echo $this->baseUrl() ?>/solicitud/adjuntos/download-attachment/id/<?php echo $attach->id ?>">
                        <img width="16" src="<?php echo $this->baseUrl() ?>/public/styles/admin/images/icon_files/_<?php echo $attach->extension; ?>.png"/>
                        <?php echo $attach->name_original; ?>
                    </a>
                <?php endforeach; ?>
            <?php endif; ?>
        </p>
        <div class="submit_link">
            <a href="<?php echo $this->url(array('action' => 'solicitud-edit-to', 'id'=>$this->solicitud->id)); ?>"><b>Responder</b></a>
            &nbsp;&nbsp;&nbsp;
            <a href="<?php echo $this->url(array('action' => 'solicitud-aprobada', 'id'=>$this->solicitud->id)); ?>"><b>Aprobar Solicitud</b></a>
        </div>
    </div>

    <footer></footer>
</article>